package org.lq.er.service.impl;

import java.util.List;

import org.lq.er.dao.SubjectDao;
import org.lq.er.dao.impl.SubjectDaoImpl;
import org.lq.er.entity.Subject;
import org.lq.er.service.SubjectService;
/**
 * 	科目业务逻辑层实现类
 * @author 六组刘明昕
 * @date 2020-8-18 23:49:20
 */
public class SubjectServiceImpl implements SubjectService {
	SubjectDao sd = new SubjectDaoImpl();
	@Override
	public boolean save(Subject t) {
		return sd.save(t)>0;
	}

	@Override
	public boolean update(Subject t) {
		return sd.update(t)>0;
	}

	@Override
	public boolean delete(int id) {
		return sd.delete(id)>0;
	}

	@Override
	public List<Subject> findAll() {
		return sd.findAll();
	}

	@Override
	public Subject findById(int id) {
		return sd.getById(id);
	}

	@Override
	public Subject getBySubjectName(String subjectName) {
		return sd.getBySubjectName(subjectName);
	}

}
